home *** CD-ROM | disk | FTP | other *** search
/ Freelog 121 / FreelogMagazineJuilletAout2014-No121.iso / Outils / Adobe-Air / adobe-air_13.exe / [0] / setup.swf / scripts / _RuntimeInstallerWatcherSetupUtil.as < prev    next >
Text File  |  2014-03-27  |  5KB  |  81 lines

  1. package
  2. {
  3.    import flash.display.Sprite;
  4.    import mx.binding.IWatcherSetupUtil;
  5.    import mx.binding.PropertyWatcher;
  6.    import mx.core.IFlexModuleFactory;
  7.    
  8.    public class _RuntimeInstallerWatcherSetupUtil extends Sprite implements IWatcherSetupUtil
  9.    {
  10.        
  11.       
  12.       public function _RuntimeInstallerWatcherSetupUtil()
  13.       {
  14.          super();
  15.       }
  16.       
  17.       public static function init(param1:IFlexModuleFactory) : void
  18.       {
  19.          RuntimeInstaller.watcherSetupUtil = new _RuntimeInstallerWatcherSetupUtil();
  20.       }
  21.       
  22.       public function setup(param1:Object, param2:Function, param3:Array, param4:Array) : void
  23.       {
  24.          param4[2] = new PropertyWatcher("record",{"propertyChange":true},[param3[15],param3[14],param3[3],param3[10]],param2);
  25.          param4[9] = new PropertyWatcher("newPatchLevel",{"propertyChange":true},[param3[15]],null);
  26.          param4[3] = new PropertyWatcher("isNAI",{"propertyChange":true},[param3[3]],null);
  27.          param4[8] = new PropertyWatcher("currentPatchLevel",{"propertyChange":true},[param3[14]],null);
  28.          param4[6] = new PropertyWatcher("versionShort",{"propertyChange":true},[param3[10]],null);
  29.          param4[18] = new PropertyWatcher("completeFinish",{"propertyChange":true},[param3[38]],param2);
  30.          param4[12] = new PropertyWatcher("uninstallCancel",{"propertyChange":true},[param3[24]],param2);
  31.          param4[14] = new PropertyWatcher("uninstallAppCanvas",{"propertyChange":true},[param3[27]],param2);
  32.          param4[24] = new PropertyWatcher("updateText",{"propertyChange":true},[param3[47]],param2);
  33.          param4[25] = new PropertyWatcher("patchNow",{"propertyChange":true},[param3[48],param3[49]],param2);
  34.          param4[0] = new PropertyWatcher("airIcon",{"propertyChange":true},[param3[0]],param2);
  35.          param4[13] = new PropertyWatcher("installedApps",{"propertyChange":true},[param3[25]],param2);
  36.          param4[7] = new PropertyWatcher("patchNewerUpdate",{"propertyChange":true},[param3[13]],param2);
  37.          param4[20] = new PropertyWatcher("completeTextResourceName",{"propertyChange":true},[param3[40]],param2);
  38.          param4[19] = new PropertyWatcher("completeLabelResourceName",{"propertyChange":true},[param3[39]],param2);
  39.          param4[11] = new PropertyWatcher("patchOlderClose",{"propertyChange":true},[param3[21]],param2);
  40.          param4[5] = new PropertyWatcher("additionalVersionAdd",{"propertyChange":true},[param3[9]],param2);
  41.          param4[10] = new PropertyWatcher("patchSameClose",{"propertyChange":true},[param3[18]],param2);
  42.          param4[15] = new PropertyWatcher("progressResourceName",{"propertyChange":true},[param3[30]],param2);
  43.          param4[4] = new PropertyWatcher("eula",{"propertyChange":true},[param3[4],param3[6],param3[5]],param2);
  44.          param4[21] = new PropertyWatcher("patchLater",{"propertyChange":true},[param3[43],param3[50]],param2);
  45.          param4[22] = new PropertyWatcher("updateAppsRunningCanvas",{"propertyChange":true},[param3[45]],param2);
  46.          param4[23] = new PropertyWatcher("updateSpacer",{"propertyChange":true},[param3[46]],param2);
  47.          param4[1] = new PropertyWatcher("contentBox",{"propertyChange":true},[param3[17],param3[2],param3[8],param3[23],param3[33],param3[29],param3[20],param3[52],param3[42],param3[37],param3[12]],param2);
  48.          param4[16] = new PropertyWatcher("progressContent",{"propertyChange":true},[param3[32]],param2);
  49.          param4[17] = new PropertyWatcher("progressCancel",{"propertyChange":true},[param3[35]],param2);
  50.          param4[26] = new PropertyWatcher("errorClose",{"propertyChange":true},[param3[53]],param2);
  51.          param4[2].updateParent(param1);
  52.          param4[2].addChild(param4[9]);
  53.          param4[2].addChild(param4[3]);
  54.          param4[2].addChild(param4[8]);
  55.          param4[2].addChild(param4[6]);
  56.          param4[18].updateParent(param1);
  57.          param4[12].updateParent(param1);
  58.          param4[14].updateParent(param1);
  59.          param4[24].updateParent(param1);
  60.          param4[25].updateParent(param1);
  61.          param4[0].updateParent(param1);
  62.          param4[13].updateParent(param1);
  63.          param4[7].updateParent(param1);
  64.          param4[20].updateParent(param1);
  65.          param4[19].updateParent(param1);
  66.          param4[11].updateParent(param1);
  67.          param4[5].updateParent(param1);
  68.          param4[10].updateParent(param1);
  69.          param4[15].updateParent(param1);
  70.          param4[4].updateParent(param1);
  71.          param4[21].updateParent(param1);
  72.          param4[22].updateParent(param1);
  73.          param4[23].updateParent(param1);
  74.          param4[1].updateParent(param1);
  75.          param4[16].updateParent(param1);
  76.          param4[17].updateParent(param1);
  77.          param4[26].updateParent(param1);
  78.       }
  79.    }
  80. }
  81.